# -*- coding: utf-8 -*-

"""
Module implementing Dialog_voice.
"""

from PyQt5.QtCore import pyqtSlot
from PyQt5.QtWidgets import QDialog, QApplication

import sys

from Ui_ui import Ui_Dialog


class Dialog_voice(QDialog, Ui_Dialog):
    """
    Class documentation goes here.
    """
    def __init__(self, parent=None):
        """
        Constructor
        
        @param parent reference to the parent widget
        @type QWidget
        """
        super(Dialog_voice, self).__init__(parent)
        self.setupUi(self)
    
    @pyqtSlot(int)
    def on_spinBox_valueChanged(self, p0):
        """
        Slot documentation goes here.
        
        @param p0 DESCRIPTION
        @type int
        """
        # TODO: not implemented yet
        print('录音时长')
    
    @pyqtSlot()
    def on_pushButton_clicked(self):
        """
        Slot documentation goes here.
        """
        # TODO: not implemented yet
        print('语音采集')
        


if __name__ == "__main__":
    app = QApplication(sys.argv)
    dialog=Dialog_voice()
    dialog.show()
    sys.exit(app.exec_())
